import request from "../utils/requistApi.js";

//获取邮箱验证码
export function getEmailCode(data) {
    return request({
        url: `/dpl/v2/auth/verifyCode/email/${data}`,
        method: "get",
        // data,
    });
}
//获取手机验证码
export function getPhoneCode(data) {
    return request({
        url: "/dpl/v2/auth/verifyCode/phone",
        method: "post",
        data: data,
    });
}
//手机验证码登录
export function phoneCodeLogin(data) {
    return request({
        url: "/dpl/v2/auth/login/phone",
        method: "post",
        data: data,
    });
}
//邮箱验证码登录
export function emailCodeLogin(data) {
    return request({
        url: "/dpl/v2/auth/login/email",
        method: "post",
        data: data,
    });
}
//微信登录
export function wechatLogin(data) {
    return request({
        url: "/dpl/v2/auth/login/wechat",
        method: "post",
        data: data,
    });
}
//手机免密登录
export function fastLogin(data) {
    return request({
        url: "/dpl/v2/auth/login/fast",
        method: "post",
        data: data,
    });
}
//大漂亮潮玩APP v1.0.0用户服务协议.html
export function getUserService(data) {
    return request({
        url: `/dpl/v2/auth/userService`,
        method: "get",
        // data,
    });
}
//大漂亮潮玩APP v1.0.0隐私政策.html
export function getPrivacy(data) {
    return request({
        url: `/dpl/v2/auth/privacy`,
        method: "get",
        // data,
    });
}
//忘记密码
export function findPassword(data) {
    return request({
        url: "/dpl/v2/auth/findPassword",
        method: "post",
        data: data,
    });
}
//找回密码
export function retrievepwdByEP(data) {
    return request({
        url: "/dpl/v2/user/retrievepwdByEP",
        method: "put",
        data: data,
    });
}
//验证验证码是否正确
export function verifymsgcode(data) {
    return request({
        url: "/dpl/v2/user/verify/msgcode",
        method: "post",
        data: data,
    });
}
//账号密码登录
export function accountAndPwd(data) {
    return request({
        url: "/dpl/v2/auth/login/accountAndPwd",
        method: "post",
        data: data,
    });
}
//手机密码登录
export function phoneAndPwd(data) {
    return request({
        url: "/dpl/v2/auth/login/phoneAndPwd",
        method: "post",
        data: data,
    });
}